;;; package --- Summary

;;; Commentary:

;; The configurations on Windows, not including windows and themes.

;;; Code:

;; -------- global utf-8 on Win --------
(when (eq system-type 'windows-nt)
  (setq default-directory "d:/")
  ;; (modify-coding-system-alist 'process "*color-rg*" 'chinese-gb18030)
  (modify-coding-system-alist 'process "*eshell*" 'chinese-gb18030)
  (modify-coding-system-alist 'file "\\.log\\'\\|\\.lst\\'\\|\\.sas\\'" 'chinese-gb18030)
  (modify-coding-system-alist 'file "\\.md\\'\\|\\.org\\'" 'utf-8)
  (when (eq w32-ansi-code-page 65001)
    (setq w32-system-coding-system 'utf-8)
    (define-coding-system-alias 'cp65001 'utf-8)))

;; -------- enable super & hyper keys --------
(when (eq system-type 'windows-nt)
  ;; left Win-key as super
  (setq w32-pass-lwindow-to-system nil)
  (setq w32-lwindow-modifier 'super) ;; will disable Win-* shortcuts
  ;; ;; right Win-key as super
  ;; (setq w32-pass-rwindow-to-system nil)
  ;; (setq w32-rwindow-modifier 'super)
  (w32-register-hot-key [s-])

  ;; menu/App-key as hyper
  (setq w32-pass-apps-to-system nil)
  (setq w32-apps-modifier 'hyper)
  (w32-register-hot-key [H-])
  )

(provide 'p1uxtar-Win-configs)
;;; p1uxtar-Win-configs.el ends here
